import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class NavigatorUtils {
  static go(context, String path, param) async {
    return Navigator.of(context).pushNamed(path, arguments: param);
  }

  static pop<T extends Object?>(BuildContext context, [T? result]) {
    Navigator.pop(context, result);
  }

  static quitApp() {
    SystemNavigator.pop();
  }
}
